import { provide, ref } from "vue";

export default function UploadDialogEvent() {
  const uploadDialogVisible = ref(false);
  provide("uploadDialogVisible", uploadDialogVisible);

  const changeUploadDialogVisible = () => {
    uploadDialogVisible.value = !uploadDialogVisible.value;
  };
  provide("changeUploadDialogVisible", changeUploadDialogVisible);
  return { uploadDialogVisible, changeUploadDialogVisible };
}
